package com.kkdz.spring;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.xml.XmlBeanFactory;
import org.springframework.core.io.ClassPathResource;

public class Main {

	public static void main(String[] args) {
		BeanFactory bf = new XmlBeanFactory(new ClassPathResource("NewFile.xml"));
		JavaBean javaBean = (JavaBean) bf.getBean("jb");
		System.out.println(javaBean);
	}

}
